package com.study.seckill.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.study.seckill.entity.CourseSeckillOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * @ClassName: CourseSeckillOrderMapper
 * @Author: wYin
 * @Date: 2022/3/10 14:39
 */
public interface CourseSeckillOrderMapper extends BaseMapper<CourseSeckillOrder> {
    @Update("update course_seckill_order set order_status = 'y' where id=#{id} and user_id=#{userId} and " +
            "order_number=#{orderNumber}")
    public boolean  updateOrderStatus(CourseSeckillOrder courseSeckillOrder);

}
